ti: k3: common: Use shutdown API for PSCI core poweroff
authorAndrew F. Davis <[email protected]>
Thu, 3 Jan 2019 19:24:25 +0000 (13:24 -0600)
committerAndrew F. Davis <[email protected]>
Mon, 21 Jan 2019 19:07:07 +0000 (13:07 -0600)
To ensure WFI is reached before the PSC is trigger to power-down
a processor, the shutdonw API must be used.

Signed-off-by: Andrew F. Davis <[email protected]>
Acked-by: Nishanth Menon <[email protected]>
plat/ti/k3/common/k3_psci.c

index cb75bf6544143f10c530380f1cee4ef35166bcfd..235e6396b6f1f564ae934de841754e368a162f81 100644 (file)
@@ -81,15 +81,16 @@ static int k3_pwr_domain_on(u_register_t mpidr)
 
 void k3_pwr_domain_off(const psci_power_state_t *target_state)
 {
-       int core_id, device, ret;
+       int core_id, proc, device, ret;
 
        /* Prevent interrupts from spuriously waking up this cpu */
        k3_gic_cpuif_disable();
 
        core_id = plat_my_core_pos();
+       proc = PLAT_PROC_START_ID + core_id;
        device = PLAT_PROC_DEVICE_START_ID + core_id;
 
-       ret = ti_sci_device_put(device);
+       ret = ti_sci_proc_shutdown(proc, device);
        if (ret) {
                ERROR("Request to stop core failed: %d\n", ret);
                return;